
#ifndef ENEMYWORD_H
#define ENEMYWORD_H


#include <QObject>
#include<QRect>
#include "cannonball.h"


class enemyword : public QObject
{
    Q_OBJECT

    bool destroyed;
    QString word;
    QPoint curPos;
    QPoint firePos;
    int half_w,half_h;
    int curIndex;
    QList<cannonball *>ballList;




public:
    explicit enemyword(const QString &word,const QPoint &firePos,const QPoint &pos,QObject *parent = nullptr);
    bool appendBall(const QString &c);
    void ballsApproach(void);
    QList<cannonball *> * getBallList(void);
    const QPoint &getPos(void);
    void setPos(const QPoint &pos);
    const QString &getWord(void);
    bool getDestroyed(void);

    int getCureIndex(void);
    int getHalfW(void);
    int getHalfH(void);


signals:

};

#endif // ENEMYWORD_H
